package com.xinz.protocal.server;

import java.lang.reflect.Method;

import com.xinz.protocal.Session;

public interface ResponseHeaderProvider {

	/**
	 * 提供一个返回的Header（服务端用）
	 * @param session
	 * @param method
	 * @param requestProvider
	 * @param args
	 * @return
	 */
	Object provideResponseHeader(Session session, Method method, Object requestHeader, Object []args, boolean isException, Object result);
	
	public static class Abstract implements ResponseHeaderProvider {

		@Override
		public Object provideResponseHeader(Session session, Method method,
				Object requestHeader, Object[] args, boolean isException,
				Object result) {
			return null;
		}

	}
}
